module.exports = {
  publicPath: "./", // 可以设置成相对路径，这样所有的资源都会被链接为相对路径，打出来的包可以被部署在任意路径
  outputDir: "dist", //打包时生成的生产环境构建文件的目录
  assetsDir: "vue-public",
  css: {
    loaderOptions: {
      postcss: {
        plugins: [
          require("tailwindcss"),
          require("autoprefixer"),
        ],
      },
    },
  },
  devServer: {
    port: 8080,
    host: "localhost",
    proxy: {
      "/api": {
        target: "http://yourTarget",
        changeOrigin: true,
        secure: false,
        pathRewrite: {
          "^/api": "",
        },
      },
    },
  },
}
